package org.example.workbench.service.impl;

import org.example.workbench.domain.CustomerRemark;
import org.example.workbench.mapper.CustomerRemarkMapper;
import org.example.workbench.service.CustomerRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("CustomerRemarkService")
public class CustomerRemarkImpl implements CustomerRemarkService {
    @Autowired
    private CustomerRemarkMapper customerRemarkMapper;

    @Override
    public int deleteCustomerRemarkById(String id) {
        return customerRemarkMapper.deleteCustomerRemarkById(id);
    }

    @Override
    public CustomerRemark getCustomerRemarkById(String id) {
        return customerRemarkMapper.getCustomerRemarkById(id);
    }

    @Override
    public int updateCustomerRemarkById(Map<String, Object> map) {
        return customerRemarkMapper.updateCustomerRemarkById(map);
    }

    @Override
    public int insertCustomerRemarkByMap(Map<String, Object> map) {
        return customerRemarkMapper.insertCustomerRemarkByMap(map);
    }

    @Override
    public List<CustomerRemark> getAllCustomerRemarkDetailById(String customerId) {
        return customerRemarkMapper.getAllCustomerRemarkDetailById(customerId);
    }
}
